package com.neugh.service.impl;

import com.neugh.entity.Orde;
import com.neugh.mapper.OrdeMapper;
import com.neugh.service.OrdeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class OrdeServiceImpl extends ServiceImpl<OrdeMapper, Orde> implements OrdeService {


    @Override
    public Orde seleOrde(Integer userId) {
        return this.baseMapper.seleOrde(userId);
    }

    @Override
    public boolean addOrderS(Orde orde) {
        return this.baseMapper.addOrderS(orde);
    }

    @Override
    public List<Orde> selectByIdOrde(int shopId) {
        return this.baseMapper.selectByIdOrde(shopId);
    }

    @Override
    public boolean insertOrde(Orde orde) {
        return this.baseMapper.insertOrde(orde);
    }

    /*@Override
    public boolean insertOrde(String orderNum, String addressId, int userId, String shopId, String orderUme, String rPhone, String orderPrice, String alipayNum) {
        return this.baseMapper.insertOrde(orderNum,addressId,userId,shopId,orderUme,rPhone,orderPrice,alipayNum);
    }*/
}
